<template>
  <div id="app">
    <p v-for="(item, index) in arr" :key="index" style="display: inline-black">
      <input type="checkbox" v-model="newArr" :value="item" />{{ item }}
    </p>
    <ul>
      <li v-for="(item, index) in newArr" :key="index">
        {{ item }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [
        "喜羊羊",
        "美羊羊",
        "懒羊羊",
        "沸羊羊",
        "慢羊羊",
        "红太狼",
        "灰太狼",
      ],
      newArr: [],
    };
  },
};
</script>

<style>
p {
  display: inline-block;
}
</style>